package com.spc.car.data.service.adm;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.spc.car.data.domain.adm.po.AdmVehicleInfoPO;
import com.spc.car.data.domain.adm.vo.AdmVehicleInfoVO;
import com.spc.car.data.entity.adm.AdmVehicleInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 行政管理-车辆信息表 服务类
 * </p>
 *
 * @author 
 * @since 2020-04-28
 */
public interface AdmVehicleInfoService extends IService<AdmVehicleInfo> {

    /**
     * 添加车辆信息
     * @param admVehicleInfoVO
     */
    boolean addOrUpdateVehicle(AdmVehicleInfoVO admVehicleInfoVO);

    /**
     * 获取详细信息通过ID
     * @param id
     * @return
     */
    AdmVehicleInfo getVehicleById(@NotNull Long id);

    /**
     * 车辆信息列表
     * @param admVehicleInfoPO
     * @return
     */
    IPage<AdmVehicleInfo> listForPage(AdmVehicleInfoPO admVehicleInfoPO);
}
